/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.cslg.dorm.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 宿舍楼Entity
 * @author 张文锦
 * @version 2017-02-11
 */
public class DormRoom extends DataEntity<DormRoom> {
	
	private static final long serialVersionUID = 1L;
	private DormBuilding dormBuilding;		// 宿舍楼 父类
	private String ssh;		// 宿舍号
	private String isfull;		// 是否住满
	private String maxStuNumb;		// 可住人数
	private String nowStuNumb;		// 当前人数
	private String remark;		// 备注信息
	
	public DormRoom() {
		super();
	}

	public DormRoom(String id){
		super(id);
	}

	public DormRoom(DormBuilding dormBuilding){
		this.dormBuilding = dormBuilding;
	}

	@Length(min=0, max=255, message="宿舍楼长度必须介于 0 和 255 之间")
	public DormBuilding getDormBuilding() {
		return dormBuilding;
	}

	public void setDormBuilding(DormBuilding dormBuilding) {
		this.dormBuilding = dormBuilding;
	}
	
	@Length(min=0, max=64, message="宿舍号长度必须介于 0 和 64 之间")
	public String getSsh() {
		return ssh;
	}

	public void setSsh(String ssh) {
		this.ssh = ssh;
	}
	
	@Length(min=0, max=11, message="是否住满长度必须介于 0 和 11 之间")
	public String getIsfull() {
		return isfull;
	}

	public void setIsfull(String isfull) {
		this.isfull = isfull;
	}
	
	@Length(min=0, max=11, message="可住人数长度必须介于 0 和 11 之间")
	public String getMaxStuNumb() {
		return maxStuNumb;
	}

	public void setMaxStuNumb(String maxStuNumb) {
		this.maxStuNumb = maxStuNumb;
	}
	
	@Length(min=0, max=11, message="当前人数长度必须介于 0 和 11 之间")
	public String getNowStuNumb() {
		return nowStuNumb;
	}

	public void setNowStuNumb(String nowStuNumb) {
		this.nowStuNumb = nowStuNumb;
	}
	
	@Length(min=0, max=255, message="备注信息长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}